package cn.tedu.inner;
//测试 内部类
public class Test1_Inner {
    public static void main(String[] args) {
        Outer.Inner in = new Outer().new Inner();
        System.out.println(in.age);
        in.in();
    }
}
class Outer{
    String name = "jack";
    public void out(){
        System.out.println("out()");
        Inner inner = new Inner();
        System.out.println(inner.age);
        inner.in();
    }
    class Inner{
        int age = 20;
        public void in(){
            System.out.println("in()");
        }
    }
}